<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>navistore.backend.tests.testServerReplication.ServerReplicationTestCase : API documentation</title>
    <meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
    <link href="apidocs.css" type="text/css" rel="stylesheet" />
    
    
  </head>
  <body>
    <h1 class="class">n.b.t.t.ServerReplicationTestCase(<span title="unittest.TestCase">unittest.TestCase</span>) : class documentation</h1>
    <p>
      <span id="part">Part of <a href="navistore.html">navistore</a>.<a href="navistore.backend.html">backend</a>.<a href="navistore.backend.tests.html">tests</a>.<a href="navistore.backend.tests.testServerReplication.html">testServerReplication</a></span>
      
      <a href="classIndex.html#navistore.backend.tests.testServerReplication.ServerReplicationTestCase">View In Hierarchy</a>
    </p>
    <div>
      
    </div>
    <div class="undocumented">No class docstring</div>

    
    
    <div id="splitTables">
      <table class="children sortable" id="id16">
  
  
<tr class="method">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.tests.testServerReplication.ServerReplicationTestCase.html#setUp">setUp</a></td>
    <td><span>Set replication to 2 other navistore http server</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.tests.testServerReplication.ServerReplicationTestCase.html#test_save_and_get_replicated">test_save_and_get_replicated</a></td>
    <td><span>Test saving a value by a key to the database, and</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.tests.testServerReplication.ServerReplicationTestCase.html#test_delete_replicated">test_delete_replicated</a></td>
    <td><span>Add a value, then delete it, and make sure</span></td>
  </tr><tr class="method">
    
    
    <td>Method</td>
    <td><a href="navistore.backend.tests.testServerReplication.ServerReplicationTestCase.html#tearDown">tearDown</a></td>
    <td><span class="undocumented">Undocumented</span></td>
  </tr>
  
</table>
      
      
    </div>
    
    
    

    <div class="function">
  <a name="navistore.backend.tests.testServerReplication.ServerReplicationTestCase.setUp">
    
  </a>
  <a name="setUp">
    
  </a>
  <div class="functionHeader">
    
    def
    setUp(self):
    
  </div>
  <div class="functionBody">
    
    <div>Set replication to 2 other navistore http server instances. For 
simplicity those instances are going to be assumed to be running on the 
same machine this test runs.</p>
<p>However, it should be easy to configure otherwise replacing the 
hostnames/ports and re-running the test.</p>
<p>To run the test, have 2 other instancs running at ports 8889 and 
8887.<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="navistore.backend.tests.testServerReplication.ServerReplicationTestCase.test_save_and_get_replicated">
    
  </a>
  <a name="test_save_and_get_replicated">
    
  </a>
  <div class="functionHeader">
    
    def
    test_save_and_get_replicated(self):
    
  </div>
  <div class="functionBody">
    
    <div>Test saving a value by a key to the database, and then make sure the 
save value by the same key is also available in the target replication 
instances.<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="navistore.backend.tests.testServerReplication.ServerReplicationTestCase.test_delete_replicated">
    
  </a>
  <a name="test_delete_replicated">
    
  </a>
  <div class="functionHeader">
    
    def
    test_delete_replicated(self):
    
  </div>
  <div class="functionBody">
    
    <div>Add a value, then delete it, and make sure the deletion operation was 
carried on to the replicated instances.<table class="fieldTable"></table></div>
  </div>
</div><div class="function">
  <a name="navistore.backend.tests.testServerReplication.ServerReplicationTestCase.tearDown">
    
  </a>
  <a name="tearDown">
    
  </a>
  <div class="functionHeader">
    
    def
    tearDown(self):
    
  </div>
  <div class="functionBody">
    
    <div class="undocumented">Undocumented</div>
  </div>
</div>
    <address>
      <a href="index.html">API Documentation</a> for navistore, generated by <a href="http://codespeak.net/~mwh/pydoctor/">pydoctor</a> at 2010-11-13 15:44:55.
    </address>
  </body>
</html>